package com.welsy.iter.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.welsy.authoring.command.GetCoursesPublishCommand;
	import com.welsy.authoring.event.GetCoursesPublishEvent;
	import com.welsy.iter.command.*;
	import com.welsy.iter.event.*;
		
	
	/**
	 * @version	$Revision: 1.1 $
	 */
	public class IterController extends FrontController
	{
		public function IterController()
		{
			initialiseCommands();
		}
		
		public function initialiseCommands() : void
		{
			addCommand(GetItersEvent.EVENT_GET_ITERS, GetItersCommand);
			addCommand(GetIterEvent.EVENT_GET_ITER, GetIterCommand);			
			addCommand(PublishIterEvent.EVENT_PUBLISH_ITER, PublishIterCommand );	
			addCommand(ClearExecuteEvent.EVENT_CLEAR_EXECUTE, ClearExecuteCommand );
			//todo check in which controller manage published courses
			//addCommand(GetCoursesPublishEvent.EVENT_GET_COURSES_PUBLISH, GetCoursesPublishCommand );
			addCommand(AddIterEvent.EVENT_ADD_ITER, AddIterCommand );
			addCommand(RemoveIterEvent.EVENT_REMOVE_ITER, RemoveIterCommand );	
		}	
	}
	
	}